//
//  TryCach.h
//  dcloudlive
//
//  Created by zhuxietong on 2020/3/16.
//  Copyright © 2020 douyun. All rights reserved.
//


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TryCach : NSObject

/**
 Provides try catch functionality for swift by wrapping around Objective-C
 */

+ (void)try:(__attribute__((noescape))  void(^ _Nullable)(void))try catch:(__attribute__((noescape)) void(^ _Nullable)(NSException*exception))catch finally:(__attribute__((noescape)) void(^ _Nullable)(void))finally;
+ (void)throwString:(NSString*)s;
+ (void)throwException:(NSException*)e;

+ (void)log:(NSObject*)dict;

@end







NS_ASSUME_NONNULL_END
